package com.jwds.digital.bios.business.rpc.feign;

import com.jwds.digital.bios.business.core.infrastructure.dto.feign.BasicOperateLogReqDTO;
import com.jwds.digital.bios.business.rpc.feign.fallback.BasicOperateLogFeignFallBack;
import com.jwds.digital.bios.business.rpc.feign.fallback.BasicStockBinFallBack;
import com.jwds.tdc.framework.application.lib.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 操作日志Feign
 *
 * @Author hesong
 */
@FeignClient(name = "bios-flow", path = "/basic/operate/log",fallback = BasicOperateLogFeignFallBack.class)
public interface BasicOperateLogFeign {
    /**
     * 新增操作日志
     *
     * @param reqDto 实体
     * @return BaseResponse
     */
    @PostMapping("/")
    BaseResponse<?> add(@Validated @RequestBody BasicOperateLogReqDTO reqDto);
}
